﻿using System.Collections.ObjectModel;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using SerialPortExample.Model;
using SerialPortExamples;

namespace SerialPortExample;

public partial class MainViewModel : ObservableObject
{
    
    public ObservableCollection<ImageItem> Images { get; set; } = new ObservableCollection<ImageItem>
    {
        new ImageItem { Id = "(0)", ImageSource = "Images/site.png", TempC = "TempC:", },
        new ImageItem { Id = "(1)", ImageSource = "Images/site.png", TempC = "TempC:", },
        new ImageItem { Id = "(2)", ImageSource = "Images/site.png", TempC = "TempC:", },
        new ImageItem { Id = "(3)", ImageSource = "Images/site.png", TempC = "TempC:", },
        new ImageItem { Id = "(4)", ImageSource = "Images/site.png", TempC = "TempC:", },
        new ImageItem { Id = "(5)", ImageSource = "Images/site.png", TempC = "TempC:", },
        new ImageItem { Id = "(6)", ImageSource = "Images/site.png", TempC = "TempC:", },
        new ImageItem { Id = "(7)", ImageSource = "Images/site.png", TempC = "TempC:", },
        new ImageItem { Id = "(8)", ImageSource = "Images/site.png", TempC = "TempC:", },
        new ImageItem { Id = "(9)", ImageSource = "Images/site.png", TempC = "TempC:", },
        new ImageItem { Id = "(10)", ImageSource = "Images/site.png", TempC = "TempC:", },
        new ImageItem { Id = "(11)", ImageSource = "Images/site.png", TempC = "TempC:", },
        new ImageItem { Id = "(12)", ImageSource = "Images/site.png", TempC = "TempC:", },
        new ImageItem { Id = "(13)", ImageSource = "Images/site.png", TempC = "TempC:", },
        new ImageItem { Id = "(14)", ImageSource = "Images/site.png", TempC = "TempC:", },
        new ImageItem { Id = "(15)", ImageSource = "Images/site.png", TempC = "TempC:", },
        new ImageItem { Id = "(16)", ImageSource = "Images/site.png", TempC = "TempC:", },
        new ImageItem { Id = "(17)", ImageSource = "Images/site.png", TempC = "TempC:", },
        new ImageItem { Id = "(18)", ImageSource = "Images/site.png", TempC = "TempC:", },
        new ImageItem { Id = "(19)", ImageSource = "Images/site.png", TempC = "TempC:", },
        new ImageItem { Id = "(20)", ImageSource = "Images/site.png", TempC = "TempC:", },
        new ImageItem { Id = "(21)", ImageSource = "Images/site.png", TempC = "TempC:", },
        new ImageItem { Id = "(22)", ImageSource = "Images/site.png", TempC = "TempC:", },
        new ImageItem { Id = "(23)", ImageSource = "Images/site.png", TempC = "TempC:", },
    };

    public Logger Logger { get; set; } = Logger.GetInstance();

    [ObservableProperty]
    private double temperature;
}